<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .red {
            color: red;
        }

        .green {
            color: chartreuse;
        }
    </style>
</head>

<body>
    <ul>

        <li class="red">茄子</li>
        <li class="green">土豆</li>
        <li class="red">西兰花</li>
        <li class="green">西红柿</li>
        <li class="green">黄瓜</li>
    </ul>

</body>

</html>